<%
    if(session.getAttribute("KhachHang") != null)
        {
            response.sendRedirect("index.jsp");
        }
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags" prefix="s" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ĐĂNG KÝ THÀNH VIÊN</title>
         <link type="text/css" rel="stylesheet" href="css/style.css" />
        <link type="text/css" rel="stylesheet" href="css/nivo-slider.css" />
        <link type="text/css" rel="stylesheet" href="css/default/default.css" />
        <script type="text/javascript" src="js/jquery-1.5.2.js"></script>
        <script type="text/javascript" src="js/myJS.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
        <s:head/>
    </head>
    <body>
        <div id="top-background">
             <div id="page-container">
                 <jsp:include page="template/header.jsp"></jsp:include>
                 <jsp:include page="template/navigation.jsp"></jsp:include>
                 <div id="main-content">
                     <div id="left-content">
                        <div class="title">
                            <p>Đăng kí thành viên</p>
                        </div>
                        <div id="left-content-inline">
                            
                            <s:form action="DangKy" method = "POST" >
                                <table>
                                    <tr>
                                        <td width="200px;text-align:right;">
                                            Tên đăng nhập
                                        </td>
                                        <td>
                                            <s:textfield name = "tendangnhap" maxLength="50" cssStyle="height:25px;width:200px;" theme="simple" />
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                            Mật khẩu
                                        </td>
                                        <td>
                                            <s:textfield name = "matkhau" maxLength="50" cssStyle="height:25px;width:200px;" theme="simple" />
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                             Nhập lại mật khẩu
                                        </td>
                                        <td>
                                              <s:textfield name = "nlmatkhau" maxLength="50" cssStyle="height:25px;width:200px;" theme="simple"  />
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                             Họ tên
                                        <td>
                                            <s:textfield name = "hoten" maxLength="50" cssStyle="height:25px;width:200px;" theme="simple" />
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                             Giới tính
                                        </td>
                                        <td>
                                             <s:radio name="gioitinh" list="#{'1':'Nam','0':'Nữ'}" value="1" theme="simple" />
                                         </td>
                                    </tr>
                                     <tr>
                                        <td>
                                             Địa chỉ
                                        </td>
                                        <td>
                                           <s:textfield name = "diachi" maxLength="100"cssStyle="height:25px;width:200px;" theme="simple" /></td>
                                    </tr>
                                     <tr>
                                        <td>
                                             Email
                                        </td>
                                        <td>
                                             <s:textfield name = "email" maxLength="50" cssStyle="height:25px;width:200px;" theme="simple"/>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                             Điện thoại
                                        </td>
                                        <td>
                                              <s:textfield name = "dienthoai" maxLength="11" cssStyle="height:25px;width:200px;" theme="simple" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                           <s:submit value = "Xác nhận" method="execute" cssStyle="height:45px;float:left;width:100px;" theme="simple"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                        <td>
                                            <s:actionerror />
                                        </td>
                                    </tr>
                                </table>
                             </s:form>
                        </div>
                     </div>
                     <jsp:include page="template/right_content.jsp"></jsp:include>
                 </div>
                 <div style="clear: both;"></div>
                 <jsp:include page="template/footer.jsp"></jsp:include>
             </div>
        </div>
    </body>
</html>
